<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include.inc.jsp"%>
<c:import url="../_frag/pager/pagerForm.jsp"></c:import>

<form method="post" rel="pagerForm" action="<c:url value='/media/list'/>" onsubmit="return navTabSearch(this)">
<div class="panel close collapse">
	<h1>查询条件</h1>
	<div class="pageFormContent">
		<fieldset>
		<dl> 
			<dt>
				所属组织: 
			</dt>
			<dd>
				<input type="hidden" name="orgId" bringBackName="org.um_organ_id" value="${param.orgId }">
				<input type="text" bringBackName="org.full_name" name="orgName" readonly value="${param.orgName }"/>
				<a class="btnLook" href='<c:url value="/system/orgselector"/>' lookupGroup="org">所属组织</a>
			</dd>
		</dl>
	   	<dl>
		    <dt>媒体名称</dt>
	    	<dd>
	    		<input name="mediaName" type="text" value="${param.mediaName }"/>
	    	</dd>
	    </dl>
	    <dl>
	    	<dt>姓名</dt>
	    	<dd>
	    		<input name="userName" type="text" value="${param.userName }"/>
	    	</dd>
		</dl>
	    <dl>
		    <dt>手机</dt>
		    <dd>
		    	<input name="mobile" type="text" value="${param.mobile }"/>
	    	</dd>
	    </dl>
	    </fieldset>
	    <div class="formBar">
			<ul>						
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
</div>
</form>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" target="dialog" rel="dialog_media_add" width="830" height="500" mask='true' max="false" href="<c:url value='/media/add'/>" title="添加媒体"><span>添加</span></a></li>
			<li><a class="edit" target="dialog" rel="dialog_media_edit" width="830" height="500" mask="true" max="false" href="<c:url value='/media/edit/{slt_objId}'/>" title="编辑媒体"><span>编辑</span></a></li>
			<li><a class="delete" target="ajaxTodo" href="<c:url value='/media/delete/{slt_objId}'/>" title="你确定要删除吗?"><span>删除</span></a></li>
			<li class="line">line</li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="110">
		<thead>
			<tr>
				<th width="50"></th>
				<th orderField="mediaName" class="${param.orderField eq 'mediaName' ? param.orderDirection : ''}">媒体名称</th>
				<th orderField="userName" class="${param.orderField eq 'userName' ? param.orderDirection : ''}">姓名</th>
				<th>性别</th>
				<th orderField="jobRank" class="${param.orderField eq 'jobRank' ? param.orderDirection : ''}">职级</th>
				<th orderField="mobile" class="${param.orderField eq 'mobile' ? param.orderDirection : ''}">手机</th>
				<th orderField="createDate" class="${param.orderField eq 'INSERT_DATE' ? param.orderDirection : ''}">创建时间</th>
				<th >照片</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach var="item" items="${pagination.values}" varStatus="s">
			<tr target="slt_objId" rel="${item.id }">
				<td>${s.index + 1}</td>
				<td>${item.mediaName}</td>
				<td>${item.userName}</td>
				<td>${item.gender}</td>
				<td>${item.jobRank}</td>
				<td>${item.mobile}</td>
				<td><fmt:formatDate value="${item.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<td><a target="_blank" href="<c:url value="${item.photoPath }"/>">照片</a></td>
			</tr>
		</c:forEach>
		</tbody>
	</table>

	<c:import url="../_frag/pager/panelBar.jsp"></c:import>
</div>
